package com.cwf.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.cwf.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BaseDomain {
    @ApiModelProperty(value = "部门ID")
    private Long id;
    @ApiModelProperty(value = "部门名称")
    @Excel(name = "部门名称", orderNum = "6", fixedIndex = 6)
    private String name;
    @ApiModelProperty(value = "部门描述")
    private String intro;
    @ApiModelProperty(value = "部门信息创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @ApiModelProperty(value = "部门信息修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "部门经理")
    private Employee manager;
    @ApiModelProperty(value = "上级部门")
    private Department parent;
    @ApiModelProperty(value = "部门地址")
    private String path;
    @ApiModelProperty(value = "部门状态")
    private Integer state;
    @ApiModelProperty(value = "二级部门")
    private List<Department> children;
}
